@echo off
echo "register-comp-with-firefox.bat called"
Set GeckoSDKPath=%1
REM Add Mozilla Firefox into the Path
Set Path=%ProgramFiles%\Mozilla Firefox;%Path%
REM COPY OVER THE COMPONENT + Dependencies into Firefox/Main
copy "%2" "%Programfiles%\Mozilla Firefox\components"
copy *.xpt "%Programfiles%\Mozilla Firefox\components"

REM Now call regxpcom to register the components
%GeckoSDKPath%\bin\regxpcom.exe -x "%ProgramFiles%\Mozilla Firefox\components"
echo "register-comp-with-firefox.bat finished"